<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    const obj = {
        name : "name1",
        age : 18,
        run : function () {
            console.log("run");
        }
    };

    const obj2 = {
        run(){
            console.log("run2");
        }

    };

    obj.run();
    obj2.run();
</script>

</body>
</html>